#ifndef FOODITEM_H
#define FOODITEM_H

#include <QWidget>
#include "food.h"
namespace Ui {
class FoodItem;
}

class FoodItem : public QWidget
{
    Q_OBJECT

public:
    explicit FoodItem(QWidget *parent = nullptr);
    void update(Food food);
    ~FoodItem();
    Food food;
private:
    Ui::FoodItem *ui;

signals:
    void selected(Food food);
};

#endif // FOODITEM_H
